package io.kogoro.config.entrypoint;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author he peng
 */

@SpringBootApplication(scanBasePackages = "io.kogoro.config")
@EnableConfigServer
public class KogoroConfigSpringCloudApplication {

    private static final Logger LOG = LoggerFactory.getLogger(KogoroConfigSpringCloudApplication.class);

    public static void main(String[] args) {
        ConfigurableApplicationContext context =
                new SpringApplicationBuilder(KogoroConfigSpringCloudApplication.class)
                        .web(WebApplicationType.SERVLET)
                        .run(args);
    }
}
